
#ifndef OPERON_SEARCH_HEADER
#define	OPERON_SEARCH_HEADER

#include <db.h>

#ifdef	__cplusplus
extern "C" {
#endif


/** a simple struture for
 * storing parameters about finding
 * something in an <code>AbstractDB</code>
 */
typedef struct SearchDB_t
    {
    /** function ptr returning 1 if the current occurence is accepted */
    int (*accept)(const DBT* key,const DBT* value,void *userData);
    /** start from this occurence */
    int start;
    /** limit to this number of occurences */
    int limit;
    /** user Data */
    void* userData;
    /** cursor orientation e.g. DB_NEXT */
    int cursorOrientation;
    }SearchDB,*SearchDBPtr;


#ifdef	__cplusplus
}
#endif

#endif	/* OPERON_SNP_HEADER */
